sex_divisions = ["male", "female"]
age_divisions = ['<5', '5<=x<15', '15<=x<25', '25<=x<35', '35<=x<45', '45<=x<55', '55<=x<65', '65<=x<75', '75<=x<85',
                 '>=85']


def sex_cls_to_txt(cls: int) -> str:
    if cls is None:
        return " "
    assert len(sex_divisions) > cls >= 0, "cls超出了范围"
    return sex_divisions[cls]


def age_cls_to_txt(cls: int) -> str:
    if cls is None:
        return " "
    assert len(age_divisions) > cls >= 0, "cls超出了范围"
    return age_divisions[cls]
